package com.example.springboottest.example.awss3;

import java.io.File;

public class S3Main {
    public static void main(String[] args) {
        S3FileService s3Service = new S3FileService(AwsS3Config.getS3Client());

        File file = new File("/Users/fangdaye/work/资料/安装fluentd");
        String key = "202011/1a744aba0389490bbde004b442cf95f8.txt";
        s3Service.upload(file, key, AwsS3Config.bucket);
        System.out.println("上传成功");
    }
}
